import type { ProfileDetail, ProfileParams } from "@/types/member"
import { http } from "@/utils/http"

export const getMemberProfileAPI = () => {
    return http<ProfileDetail>({
        method: "GET",
        url: '/member/profile'
    })
}

export const updateUserInfoAPI = (data: ProfileParams) => {
    return http({
        method: 'PUT',
        url: '/member/profile',
        data
    })
}